<template>
  <view class="demo-page">
    <u-navbar title="产品演示" :border="false" :autoBack="true"></u-navbar>
    
    <view class="demo-content">
      <view class="demo-section">
        <view class="section-title">产品详情页面演示</view>
        <view class="demo-list">
          <view class="demo-item" @click="goToProductDetail('demo1')">
            <view class="demo-info">
              <view class="demo-name">智能设备A</view>
              <view class="demo-desc">查看完整的产品资料详情</view>
            </view>
            <u-icon name="arrow-right" color="#999" size="16"></u-icon>
          </view>
          
          <view class="demo-item" @click="goToProductDetail('demo2')">
            <view class="demo-info">
              <view class="demo-name">工业设备B</view>
              <view class="demo-desc">包含轮播图和详细规格</view>
            </view>
            <u-icon name="arrow-right" color="#999" size="16"></u-icon>
          </view>
          
          <view class="demo-item" @click="goToProductDetail('demo3')">
            <view class="demo-info">
              <view class="demo-name">精密仪器C</view>
              <view class="demo-desc">京东商品详情风格展示</view>
            </view>
            <u-icon name="arrow-right" color="#999" size="16"></u-icon>
          </view>
        </view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goToProductDetail(id) {
      uni.navigateTo({
        url: `/pages/customerproduct/index?id=${id}`
      });
    }
  }
}
</script>

<style lang="scss" scoped>
.demo-page {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.demo-content {
  padding: 20rpx;
}

.demo-section {
  background-color: #fff;
  border-radius: 12rpx;
  overflow: hidden;
  
  .section-title {
    padding: 30rpx;
    font-size: 32rpx;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .demo-list {
    .demo-item {
      display: flex;
      align-items: center;
      padding: 30rpx;
      border-bottom: 1px solid #f5f5f5;
      
      &:last-child {
        border-bottom: none;
      }
      
      .demo-info {
        flex: 1;
        
        .demo-name {
          font-size: 28rpx;
          color: #333;
          margin-bottom: 8rpx;
        }
        
        .demo-desc {
          font-size: 24rpx;
          color: #999;
        }
      }
    }
  }
}
</style> 